﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{


    public partial class qgzx_zm_trainer
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_zm_trainer ToPOCO()
        {
            qgzx_zm_trainer poco = new qgzx_zm_trainer()
            {
                TrainId = this.TrainId,
                ApplyId = this.ApplyId,
                TrainerNum = this.TrainerNum,
                PeriodId = this.PeriodId,
                StudentNum = this.StudentNum,
                AttendanceScore = this.AttendanceScore,
                TestScore = this.TestScore,
                FeelingScore = this.FeelingScore,
                VolunteerName = this.VolunteerName,
                VolunTime = this.VolunTime,
                IsGraduated = this.IsGraduated,
                IsExcellent = this.IsExcellent,
                TotalScore = this.TotalScore,
            };
            return poco;
        }
        #endregion


        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.GraduManage ToViewModel()
        {
            ViewModel.GraduManage poco = new ViewModel.GraduManage()
            {
                TrainId = this.TrainId,
                ApplyId = this.ApplyId,
                TrainerNum = this.TrainerNum,
                PeriodId = this.PeriodId,
                StudentNum = this.StudentNum,
                AttendanceScore = this.AttendanceScore,
                TestScore = this.TestScore,
                FeelingScore = this.FeelingScore,
                VolunteerName = this.VolunteerName,
                VolunTime = this.VolunTime,
                IsGraduated = this.IsGraduated,
                IsExcellent = this.IsExcellent,
                TotalScore = this.TotalScore,

            };
            return poco;
        }
        #endregion
    }
}
